﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TabGeneral.ascx.cs" Inherits="BigLotterySyndicate.Secured.Draws.Controls.TabGeneral" %>
<%@ Register TagPrefix="Syndicate" TagName="Calendar"  Src="~/Secured/Controls/CalendarControl.ascx" %>
<table cellpadding="2" cellspacing="2">
<tr>
    <td>Draw date:</td>
    <td><Syndicate:Calendar ID="CalendarDrawDate" ShowTime="false" runat="server"></Syndicate:Calendar> <asp:Literal ID="litDrawDate" runat="server"></asp:Literal></td>
</tr>
    <tr>
        <td>Price per line:</td>
        <td><%= PrintDrawPricePerLine() %></td>
    </tr>
<tr>
    <td>Type:</td>
    <td><%= PrintDrawType() %></td>
</tr>
<asp:PlaceHolder ID="PlaceHolderResult" runat="server" Visible="false">
<tr>
    <td>Result:</td>
    <td><%= PrintResult() %></td>
</tr>

</asp:PlaceHolder>
<tr>
    <td>Lines:</td>
    <td><%= PrintLinesCount() %></td>
</tr>
<tr>
    <td>Players:</td>
    <td><%= PrintPlayersCount() %></td>
</tr>
<tr>
    <td>Costs:</td>
    <td><%= PrintDrawCosts() %></td>
</tr>
<tr>
    <td>Funds:</td>
    <td></td>
</tr>
<tr>
    <td>From players:</td>
    <td><%= PrintFundsFromPlayers() %></td>
</tr>

<tr>
    <td>From previous winnings:</td>
    <td><asp:TextBox ID="txtExtraFunds" runat="server"></asp:TextBox><asp:Literal ID="litExtraFunds" runat="server"></asp:Literal></td>
</tr>
<tr>
    <td>Total funds:</td>
    <td><%= PrintTotalFunds() %></td>
</tr>
<tr>
    <td>Remaining:</td>
    <td><%= PrintRemainingWithMinus()%></td>
</tr>
<tr>
    <td>Winnings from this draw:</td>
    <td><asp:TextBox ID="txtWinnings" runat="server"></asp:TextBox></td>
</tr>
<tr>
    <td>Status:</td>
    <td>
    <asp:DropDownList ID="ddlStatus" Visible="false" runat="server">
        <asp:ListItem Text="Open" Value="Open" />
        <asp:ListItem Text="Pending" Value="Pending" />
        <asp:ListItem Text="Finished" Value="Finished" />
    </asp:DropDownList>
    <asp:Literal ID="litStatus" runat="server"></asp:Literal>
    </td>
</tr>
</table>
<p>
<asp:Button ID="ButtonSave" runat="server" Text="Save" onclick="ButtonSave_Click" />    
<asp:Button ID="ButtonCheckResult" runat="server" Text="Check results" 
        onclick="ButtonCheckResult_Click" />    
</p>
<%= PrintStats() %>